import 'package:flutter/material.dart';

class addShebaiPager extends StatefulWidget {
  @override
  _addShebaiPagerState createState() => _addShebaiPagerState();
}

class _addShebaiPagerState extends State<addShebaiPager> {
  var _userServerController = new TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: InkWell(
          onTap: () {
            Navigator.of(context).pop();
          }, //故障申请表
          child: Icon(
            Icons.chevron_left,
            size: 29.0,
            color: Colors.white,
          ),
        ),
        automaticallyImplyLeading: false,
        centerTitle: true,
        title: Text(
          "添加设备",
          style: TextStyle(fontSize: 16.0),
        ),
        actions: <Widget>[
          Center(
            child: Container(
                padding: new EdgeInsets.only(right: 20.0),
                child: InkWell(
                  onTap: () {},
                  child: Text("保持"),
                )),
          ),
        ],
      ),
      backgroundColor: Color(0xFFEEEEEE),
      body: Container(
        child: ListView(
          children: <Widget>[
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("设备名称*"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            //TODO 1
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("设备编号"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "不输入则系统自动生成",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("二维码*"),
                  ),
                  Expanded(
                      child:Container()
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 10.0),
                    child:Container(child:Image.asset("images/mipmap-xhdpi-v4/gteq_icon_main_go.png"),width:20.0,height: 20.0,),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("规格型号"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("设备类别*"),
                  ),
                  Expanded(
                      child:Container()
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 10.0),
                    child:Container(child:Image.asset("images/mipmap-xhdpi-v4/gteq_icon_main_go.png"),width:20.0,height: 20.0,),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("是否使用*"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("使用部门"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("设备图片"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child:Container()
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 10.0),
                    child:Container(child:Image.asset("images/mipmap-xhdpi-v4/gteq_icon_main_go.png"),width:20.0,height: 20.0,),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),
            Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("安装地点"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.white),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("操作人员*"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("自从负责人*"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.white),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("资产原值"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("安装日期"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Text("2018-09-35 16：33：00",style:TextStyle(color:Colors.blue),),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("保修日期*"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Text("2018-09-35 16：33：00",style:TextStyle(color:Colors.blue),),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),Container(
              color:Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: <Widget>[
                  Container(
                    height:36.0,
                    padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                    child: Text("备注"),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 60.0),
                  ),
                  Expanded(
                    child: new TextField(
                      keyboardType: TextInputType.text,
                      focusNode: FocusNode(),
                      cursorWidth: 1.5,
                      cursorColor: Colors.lightBlueAccent,
                      style: TextStyle(color: Colors.black12),
                      controller: _userServerController,
                      decoration: new InputDecoration(
                        hintText: "",
                        focusedBorder: InputBorder.none,
                      ),
                    ),
                  ),
                  Padding(
                    padding: new EdgeInsets.only(right: 30.0),
                  ),
                ],
              ),
            ),
            Container(
              height: 1.0,
              width: MediaQuery.of(context).size.width,
              color: Colors.black12,
            ),


          ],
        ),
      ),


    );
  }
}
